<?php /* Smarty version 3.1.24, created on 2015-07-10 13:01:25
         compiled from "F:/WAMP/NewWAMP/wamp/www/display/pinglun.html" */ ?>
<?php
/*%%SmartyHeaderCode:15670559f51a5a4cf35_75980996%%*/
if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '66d9409ec9a2ce7a04329037b10895eec5e2fffb' => 
    array (
      0 => 'F:/WAMP/NewWAMP/wamp/www/display/pinglun.html',
      1 => 1436504482,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '15670559f51a5a4cf35_75980996',
  'variables' => 
  array (
    'comment_pinglun_number' => 0,
    'commentnewscontent' => 0,
  ),
  'has_nocache_code' => false,
  'version' => '3.1.24',
  'unifunc' => 'content_559f51a5ad5ad6_68183041',
),false);
/*/%%SmartyHeaderCode%%*/
if ($_valid && !is_callable('content_559f51a5ad5ad6_68183041')) {
function content_559f51a5ad5ad6_68183041 ($_smarty_tpl) {

$_smarty_tpl->properties['nocache_hash'] = '15670559f51a5a4cf35_75980996';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>评论样式</title>
<link rel="stylesheet" href="style/pinglun.css">
<?php echo '<script'; ?>
 type="text/javascript" src="./js/jquery-1.8.0.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript">
	$(document).ready(function(e) {
        $("#qiehuan_pinglun_time").click(function(){
			$("#qiehuan_pinglun_time").css({"border-bottom":"2px solid #379BE9"});
			$("#qiehuan_pinglun_hot").css({"border-bottom":"none"});
			$("#qiehuan_pinglun_my").css({"border-bottom":"none"});
			$("#pinglun_hot").css("display","none");
			$("#pinglun_my").css("display","none");
			$("#pinglun_time").css("display","block");
			});
		$("#qiehuan_pinglun_hot").click(function(){
			$("#qiehuan_pinglun_hot").css({"border-bottom":"2px solid #379BE9"});
			$("#qiehuan_pinglun_time").css({"border-bottom":"none"});
			$("#qiehuan_pinglun_my").css({"border-bottom":"none"});
			$("#pinglun_my").css("display","none");
			$("#pinglun_time").css("display","none");
			$("#pinglun_hot").css("display","block");
			});
		$("#qiehuan_pinglun_my").click(function(){
			$("#qiehuan_pinglun_my").css({"border-bottom":"2px solid #379BE9"});
			$("#qiehuan_pinglun_time").css({"border-bottom":"none"});
			$("#qiehuan_pinglun_hot").css({"border-bottom":"none"});
			$("#pinglun_hot").css("display","none");
			$("#pinglun_time").css("display","none");
			$("#pinglun_my").css("display","block");
			});
		
		////////////发表评论
		$("#comment_submit").click(function(){
			var comment_content = $("#editor_textarea").val();
			if(comment_content==""){
				alert("请输入评论内容！");
			}
			else{
				
				$.post("../minGanci/testMain.php",{content:comment_content},function(data){
					alert(data);
					if(data=="0"){
						//$("#pinglun_time").prepend("<h1>"+comment_content+"</h1>");
					}
					else{
						//alert("评论内容存在敏感词，请修改内容。")
					}				
				});     ///////////post结束
				
				/*
				$.post(
				"comment_upload.php",
				{content:comment_content},
				function(data){
					//$("#pinglun_time").prepend("<h1 style='color:red;'>"+comment_content+"</h1>");
					$("#pinglun_time").prepend("<div class='pinglun_content' id='pinglun_content'><div class='pinglun_user_img'><img src='images/userpic.jpg' alt='' class='pinglun_user_img_style'></div><div class='pinglun_content_right'><p class='pinglun_username_time'><span id='pinglun_username'>"+data.commentusername+"</span><span id='fabu_pinglun_time'>"+data.time+"</span></p><p class='pinglun_detail_content'>"+comment_content+"</p><p class='pinglun_zan_jubao'><span id='pinglun_zan'>赞(100)</span><span id='pinglun_jubao'>举报（10）</span></p></div><div style='clear:both;'></div></div>");
				},
				"json"
				);
				*/
			}
		});		
		////////////发表评论结束
    });
function js_zan(comment_zan){
	//var comment_zan_number=$("#comment_zan_number").val();
	$(this).children("span").html("hello");
}
<?php echo '</script'; ?>
>
</head>

<body>
<div class="content_left_comment">
	<div class="editor_content">
    	<p class="editor_content_p1"><span id="wangyoupinglun">网友评论</span>文明上网理性发言，请遵守新闻评论服务协议
        	<a href="#" target="_blank"><span id="comment_pinglun_number"><?php echo $_smarty_tpl->tpl_vars['comment_pinglun_number']->value;?>
人评论</span></a>
            <a href="#" target="_blank"><span id="comment_canyu_number">10人参与</span></a>          
        </p>
        <textarea id="editor_textarea" class="editor_textarea" ></textarea>
        <p class="editor_content_p2"><button id="comment_submit">发表评论</button></p>
    </div>
    
    <div class="qiehuan_pinglun_time_hot_my">
    	<ul>
        	<li id="qiehuan_pinglun_time">最新评论</li>
            <li id="qiehuan_pinglun_hot">热门评论</li>
            <li id="qiehuan_pinglun_my">我的评论</li>
        </ul>
    </div>
    <!--最新评论开始-->
    <div class="pinglun_time" id="pinglun_time">
    	<div class="pinglun_content" id="pinglun_content">
    		<div class="pinglun_user_img"><img src="images/userpic.jpg" alt="" class="pinglun_user_img_style"></div>
            <div class="pinglun_content_right">
            	<p class="pinglun_username_time"><span id="pinglun_username">小潘</span><span id="fabu_pinglun_time">2015-7-6 20:00:35</span></p>
            	<p class="pinglun_detail_content">哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</p>
                <p class="pinglun_zan_jubao"><a href="javascript:void(0);" onclick="js_zan(this)"><span id="pinglun_zan">赞（100）</span></a><span id="pinglun_jubao">举报（10）</span></p>
            </div>
            <div style="clear:both;"></div>
        </div>
        <div class="pinglun_content">
    		<div class="pinglun_user_img"><img src="images/userpic.jpg" alt="" class="pinglun_user_img_style"></div>
            <div class="pinglun_content_right">
            	<p class="pinglun_username_time"><span id="pinglun_username">小潘</span><span id="fabu_pinglun_time">2015-7-6 20:00:35</span></p>
            	<p class="pinglun_detail_content">哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈</p>
                <p class="pinglun_zan_jubao"><a href="javascript:void(0);" onclick="js_zan(this)"><span id="pinglun_zan">赞（<span id="comment_zan_number">100</span>）</span></a><span id="pinglun_jubao">举报（10）</span></p>
            </div>
            
            <div style="clear:both;"></div>
        </div>
        <?php echo $_smarty_tpl->tpl_vars['commentnewscontent']->value;?>

        <div style="clear:both;"></div>
    </div>
    <!--最新评论结束-->
    
    <!--热门评论开始-->
    <div class="pinglun_hot" id="pinglun_hot">
    	<div class="pinglun_content">
    		<div class="pinglun_user_img"><img src="images/userpic.jpg" alt="" class="pinglun_user_img_style"></div>
            <div class="pinglun_content_right">
            	<p class="pinglun_username_time"><span id="pinglun_username">小潘</span><span id="fabu_pinglun_time">2015-7-6 20:00:35</span></p>
            	<p class="pinglun_detail_content">嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻嘻想休息休息休息</p>
                <p class="pinglun_zan_jubao"><span id="pinglun_zan">赞（100）</span><span id="pinglun_jubao">举报（10）</span></p>
            </div>
            
            <div style="clear:both;"></div>
        </div>
    	<div style="clear:both;"></div>
    </div>
    <!--热门评论结束-->
    
    <!--我的评论开始-->
    <div class="pinglun_my" id="pinglun_my">
    	<div class="pinglun_content">
    		<div class="pinglun_user_img"><img src="images/userpic.jpg" alt="" class="pinglun_user_img_style"></div>
            <div class="pinglun_content_right">
            	<p class="pinglun_username_time"><span id="pinglun_username">小潘</span><span id="fabu_pinglun_time">2015-7-6 20:00:35</span></p>
            	<p class="pinglun_detail_content">我喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂喂</p>
                <p class="pinglun_zan_jubao"><span id="pinglun_zan">赞（100）</span><span id="pinglun_jubao">举报（10）</span></p>
            </div>
            
            <div style="clear:both;"></div>
        </div>
        
    	<div style="clear:both;"></div>
    </div>
    <!--我的评论结束-->
    
</div>
</body>
</html>
<?php }
}
?>